Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[backport v1.14-branch] logging: wake up log process thread only when log message happen #19672

Conversation

wentongwu
Copy link
Contributor

@wentongwu wentongwu commented Oct 8, 2019

Periodically wake up log process thread consume more power if system
already in sleep or deep sleep state. With the help of added logging
timer and semaphore, log process thread is woken up only when there
is logging message.

Fixes: #19982.

Signed-off-by: Wentong Wu [email protected]

@wentongwu wentongwu force-pushed the backport-19427-to-v1.14-branch branch from 582b889 to d629916 Compare October 17, 2019 03:13
@wentongwu
Copy link
Contributor Author

wentongwu commented Oct 17, 2019

@nordic-krch I added your fix to this backport, if you want to do the backport yourself, please let me know. Thanks

@wentongwu
Copy link
Contributor Author

@nashif could you please help merge this PR to v1.14 branch? Thanks

@nashif
Copy link
Member

nashif commented Oct 21, 2019

we need a bug reference

@wentongwu wentongwu force-pushed the backport-19427-to-v1.14-branch branch from d629916 to f1e0997 Compare October 21, 2019 13:25
Periodically wake up log process thread consume more power if system
already in sleep or deep sleep state. With the help of added logging
timer and semaphore, log process thread is woken up only when there
is logging message.

Fixes: zephyrproject-rtos#19982.

Signed-off-by: Wentong Wu <[email protected]>
@wentongwu
Copy link
Contributor Author

we need a bug reference

@nashif done the bug reference.

@nashif nashif merged commit 8ae5ada into zephyrproject-rtos:v1.14-branch Oct 29, 2019
@wentongwu wentongwu deleted the backport-19427-to-v1.14-branch branch December 4, 2019 06:25
@wentongwu wentongwu restored the backport-19427-to-v1.14-branch branch December 4, 2019 06:25
@wentongwu wentongwu deleted the backport-19427-to-v1.14-branch branch December 4, 2019 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants